package cn.kn.triage.common.servic;

import cn.kn.triage.sys.vo.ActiveUser;
import org.apache.shiro.SecurityUtils;

/**
 * @author yinzn
 * @create 2020-10-21 9:16
 */
public abstract class BaseService {
    public Integer getUserId(){
        return getActiverUser().getUser().getId();
    }
    public ActiveUser getActiverUser(){
       return (ActiveUser) SecurityUtils.getSubject().getPrincipal();
    }
}
